package com.lizi.idgenerator.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lizi.idgenerator.entity.IdCode;
import com.lizi.idgenerator.entity.IdCreator;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author kingman
 * @since 2020-12-22 18:12
 */
@Repository
public interface IdCodeMapper  extends BaseMapper<IdCode> {

    /**
     * 批量插入
     * @param codes
     */
    void insertBatch(@Param("codes") List<IdCode> codes);
}
